// 导入axios实例对象request
import request from '@/util/request.js'

// 创建submitParamsAPI接口并抛出共享
export const submitParamsAPI = (id, attrId, attrName, attrSel, attrVals) => {
  return request.put(`categories/${id}/attributes/${attrId}`, {
    attr_name: attrName,
    attr_sel: attrSel,
    attr_vals: attrVals
  })
}
